﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XNATools.Engine2D;
using Microsoft.Xna.Framework;
using XNATools.Enums;

namespace TestLibrairies
{
    //Class for bricks, we inherit from Sprite
    public class Brick:Sprite
    {
        #region Fields
        #endregion

        #region cTor(s)

        public Brick(Game game)
            : base(game, "brick", Layer.Artwork)
        {}

        #endregion

        #region Methods
        //We override Initialize because we have custom things to do
        public override void Initialize()
        {
            /* /!\ ->  Sets all properties AFTER  base.Initialize().
             * Because base.Initialize() call LoadContent() and we
             * have to LoadContent to know properties like size etc...
             */
            base.Initialize();           
            Scale = new Vector2(0.2f);
            ForceTransformBounds();  
        }

        #endregion

        #region Properties
        #endregion
    }
}
